<%@ page language="Java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>



<form:form action="register.html" method="post"
	commandName="registerUserForm">
	<fieldset style="width: 50%; padding: 25px 30px 25px 30px;">

		<legend class="formElement">Rejestracja</legend>

		<div class="formElement">
			<form:label path="name" cssClass="formElement">Imię</form:label>
			<form:input path="name" cssClass="formElement" />
			<form:errors path="name"/> 
		</div>

		<div class="formElement">
			<form:label path="surname" cssClass="formElement">Nazwisko</form:label>
			<form:input path="surname" cssClass="formElement" />
			<form:errors path="surname"/> 
		</div>

		<div class="formElement">
			<form:label path="login" cssClass="formElement">Login</form:label>
			<form:input path="login"  cssClass="formElement"/>
			<form:errors path="login"/> 
		</div>

		<div class="formElement">
			<form:label path="password" cssClass="formElement">Hasło</form:label>
			<form:password path="password" cssClass="formElement"/>
			<form:errors path="password"/> 
		</div>

		<div class="formElement">
			<input type="submit" value="Zarejestruj" />
		</div>

	</fieldset>
</form:form>

